import Vue from 'vue'
import Router from 'vue-router'
import IndexPage from '@/pages/index/IndexPage'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: 'IndexPage',
      component: IndexPage
    },{
      path: '/index',
      name: 'IndexPage1',
      component: IndexPage
    },
    {
      path:"/login",
      name:"LoginPaeg",
      component: ()=>import("@/pages/login/LoginPage")
    },
    {
      path:"/vip",
      name:"VipPaeg",
      component: ()=>import("@/pages/vip/VipPage")
    },
    {
      path:"/lessonface",
      name:"LessonFacePage",
      component: ()=>import("@/pages/lessons/LessonFacePage")
    },
    {
      path:"/user",
      name:"UserPage",
      component: ()=>import("@/pages/user/UserPage")
    },
    {
      path:"/order",
      name:"OrderPage",
      component: ()=>import("@/pages/order/OrderPage")
    },
    {
      path:"/speciallesson",
      name:"SpecialLessonPage",
      component: ()=>import("@/pages/lessons/SpecialLessonPage")
    },
    {
      path:"/createlesson",
      name:"CreateLessonPage",
      component: ()=>import("@/pages/lessons/CreateLessonPage")
    },
    {
      path:"/video",
      name:"VideoPage",
      component: ()=>import("@/pages/video/VideoPage")
    }
  ]
})
